import easyocr

def recognize_texts_with_picture_2(dir):
    reader = easyocr.Reader(['ch_sim', 'en'])
    results = reader.readtext(dir)

    text0 = ''
    for (bbox, text, prob) in results:
        print(f'文字：{text}，置信度：{prob: .2f}')
        text0 += text

    return text0